package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import server.business.pojo.BloodSamplePurpose;
import server.business.service.BloodSamplePurposeService;

import java.util.List;
@RequestMapping("/purpose")
@Controller
public class BloodSamplePurposeController {

    @Autowired
    private BloodSamplePurposeService bloodSamplePurposeService;


    /**
     * 获取患者血样用途数据字典
     */
    @GetMapping("/normal/query")
    @ResponseBody
    public List<BloodSamplePurpose> purposeList(){

        return bloodSamplePurposeService.list();
    }
}
